Collapsible bugfix

The new animation feature broke the collapsing of the tabs, the tabs
should be able to collapse properly now.