Fixed nearest slice assignment in nearest neighbor interpolation case.