adds page aniimation