delete gallery function added