delete gallery method