close alerts with animation