change html for gallery