Hide notices and alerts after a few seconds