fixing em issue with full screen gallery