modify getSlice() api to get(cols).slice()