gallery clean up