added some additional functionality to turkGallery