Hide content after having closed it (otherwise content div became visible when window was resized) - continued