syncGalleries method