add class to lightbox for transition