Fixes #1120, sidebar can now hide/show during animation