do something when an animation has completed. useful for hide/show