Fix sidepanel animation