Yeah kinda vague.
But you can use a variable for page number and just do
On click | Page number +1
and then you set the pages to change based on what number the page number variable is set to.
FOR EXAMPLE :
if Page number = 1 | set visible "Page 1" visible
| set visible "Page 2" invisible
| set visible "Page 3" invisible
| set visible "Page 4" invisible
| set visible "Page 5" invisible