We can show and hide individual panes using CSS based on the classes. We should only need to used wb.hide and wb.show to hide panels of sub-panes when we find that all the sub-panes are hidden.