I had a three by six cage. I have ten pigs altogether. I had five girls in the big cage and they didn't really need all of the space, so I divided the cage into four areas, two larger and two smaller, by putting a big X shaped screen wall through the middle.
I have the five girls on one end. These came from two sources, and get along. Two girls from another source that don't get along well with the others are on the opposite end.
In the middle two sections I have a male on one side and two males, one is neutered, on the opposite.
This arrangement seems to work pretty well. The piggies all kind of congregate around the X or hang out by themselves. Take the X out and the girls would fight, the boys would fight, and the boys would be chasing the girls, the girls would be running, and the neutered male would be all upset. Separated but close, they all seem quite happy and relaxed.