added animation
corrected animation function
added animation to initial positioning