adding some animation to the overlay