Created delete function for galleries