Modified the slices.go file to include the range part