added delete gallery function