add feature: sync for gallery