Is it possible to hide collection using button block action

It’s hard to imagine what you want. It would be better if you could provide a visualization of your explanation. I assume you want to achieve something similar to the following thread: