fixed duplicated render loop when exiting the lightbox bug
repositioning elements out of screen