Implement the slide animation