Showing animation while changing screen size