Cleaning up animations on hide/show panes.