Don the admin in a discussion quite a while back in 2023 offered a little 'Gallery' test script line, which I dutifully practiced making a 'shortcut' button in my newbie ability.
Been making headway slowly, amazed at the utility of this prog and the power of photo viewing, storing, and speed of huge image data needs. This tidbit gave me yet another great view.
Alas, I can't toggle back, or even figure out what's been changed, since I also sinned by exiting saving (stupidly..) and started up again, now doomed to my new thumbnail style change.
I promise to learn more ASAP.. Just a quick point in the right direction, please!!

Don's original post info...
Select a thumbnails view in the list and run this through the address bar. It toggles back and forth between normal thumbs and something that comes close to a Masonry Grid-view:
thumbsconf((thumbsconf() == '0,1,0,0,0,0,0,0,1') ? '1,0,0,4,0,0,0,0,1' : '0,1,0,0,0,0,0,0,1');