fixed layout galery, and added show popup image when gallery onclick