Stable partitions in a model with group-dependent feasible sets