updated slices.go