made lightbox more smooth