adding animation to carousel