Less is more. Create one dynamic action on button click.
Add a condition to validate if your region is vissible.
Add a true action that will hide your region, check fire on page load.
Add a false action that will show your region, uncheck fire on page load.