updating the slide animation