adjust the animation frame