Take a collection of items. You split this collection up into 3 groups and then within your UI (in this example we'll assume we're designing an iOS app) you place a segment control with 3 segments so ...
There are examples on the web with actions within a clickable area. Does this create an issue with users mistakenly clicking a delete or close button vs the actual area? Examples: