templated opSlice for values