Fixed the slide animation