adjust animation on map close