You should create additional variable
When you click the button to go to page 1, add 2 more external / set variable actions to the same button
Then on the properties of the page2 and page2 buttons, go to the layout tab, and add a conditional show/hide expression
vHidePage2='False' (on button for page 2)
vHidePage3='False' (on button for page 3)
Just update the variables when users move sheets. You can do this using actions on sheet triggers as well as the way you are doing through buttons
Happy to help.
I left the tab row visible to avoid any confusion. This, of course, means that manually changing the tabs on the tab row will knock the variables out of whack so hiding the tab row would avoid that.
Also if you notice the hidden condition uses the state of the variable with no need for an 'if', as does the action that changes the value of the variable.
If you found the response useful please mark as correct!