merge to gallery