p_slice_max function

Slice operations