I made a Macro that toggles visibility of the hotbars that my gear sets are on, so it functions similarly to what you are suggesting.

Yes it still takes up bar space but at least it's not cluttering my screen all the time.