Add animation for slider