That’s what I did when I had to separate my boars. Both spaces had an equal number of hides, a water bottle, food dish, and hay rack. They lived perfectly comfortable that way.
It was pricey, but my boys are worth it. The only difference between my situation and yours is that visits without a barrier is totally out of the question in my case. With only one lone pig left in my herd of 7 boars, it still takes up a lot of space put Mr Bubbles next to one of the pairs. To give you an idea, two of those cages butted together is 8 feet long.