Here is one approach I have just tried as an experiment.
Using the same approach as in nearby thread (using AHK for automation if you are in Windows) you could write your multiple expanded text sections in individual code boxes and then use an AHK automation script to run through these steps, after first selecting a code box to expand or collapse:
Click on collapsed Code Box to select it.
Right click on selected Code Box
Change CodeBox Properties to expand height to say 200
View or Edit the code box
Change CodeBox Properties to collapse height to say 20
You can bind hot keys for Code Box expand/collapse
e.g. Ctrl + Arrow up and Ctrl + Arrow down
The Code Box can be Type > Plain Text or you can choose a language such as python to execute content of Code Box.
If you are not a Windows user there are other automation scripts to use to emulate the expand/collapse process.
There seems to be no limit to what effects you can achieve using external scripting.