Fixed slide delete function.