replaced rotate animation with slide animation