adjust lightbox behaviour