Refs #8528. Correct error related to reduction in batch

Because assignSample cleaned the slices definition, it lacked support for
slices. Now, it is cleaned on loading mask.