Remove a misleading cast

uiSliceSizeConstraint is not of the SliceMode type, but is a normal
int.