Simple math...
-
***
or
***
page for exit stamp for Thailand.
- 1 page of visa to Laos if you don’t have yet.
-
***
or
***
page for each entry / exit stamp for Laos.
- 1 page for visa to Thailand.
-
***
or
***
page for entry stamp for Thailand.
-
***
page for extension and
***
page for reentry permit.
These are the least space you will need for each. Sum up whatever you need and compare to your space left.
At the point of that you don’t have enough space you might be refused for any of above. Without enough space for stamp, no extension or whatever.
Hope you have at least enough space to be back to Thailand with visa at the first step now.