Fix slide animation for different orientations