fixed lightbox size logic