pkg/selector: set the cap for slice in SelectorFromSet