One way is to use separate slide control objects with conditional visibility, and stack them so that only the relevant one is visible.
There is some info on the Perpetual Slide Control if you search. It uses 2-3 panels with a dynamic number of displayed panels. slide control
Conditional visibility is a good way to go. Using objects in groups is a good idea. Some objects like buttons can remain visible all the time but have dynamic text and function based on global variables. If they look the same and are in the same place on the layout this can be a better than 50 stacked buttons.
Button Bars are also nice for their dynamic resizing with conditional visibility.
Often when this sort of problem arises, a lot can be accomplished by improving data structure. And their are flexible, extensible structures, think EAV, that can be done in FileMaker.
The more you're willing to tell us about your tests and their variations, the more help contributors here can suggest.