Improving the animation's performance