Added animation to the slider