Fix a bug in slices generation. UN code incorpored when we have region as dimnession