clean up for gallery