Merge changes in gallery