fix imageGallery widget escape