Validator for entering slices