animation directive inserted

implenting an animation directive, auto slide after a given time