for (int i = 0; i < slicePlanesSlatSlices.size(); i++) {
SlicePlane plane = slicePlanesSlatSlices.get(i);
if(plane.getCrossSliceSelection() != null && plane.getCrossSliceSelection().selected){
selectedPlanes.add(plane);
}else{
plane.unselect();
}
}
for (int i = 0; i < slicePlanesY.size(); i++) {