Improve performance of side menu animation.