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.
Refs #* develop.
Merge branch 'feature/8528_slice_event' into develop