change how to implement the animation

changed the implementation of animation per slide from object literal to
an array