add animation to the sidebar