fix lightbox hiding via classes