use addClass and removeClass to display and hide lightbox