optimize page animation