more trimming of gallery repo