add animation effect on changing slide