enabled deletion of empty galleries