[scan] slice should truncate the size even when not copying the buffer