I don't understand exactly, what you want, so I guess: there are two pistons connected to one box? Maybe it helps if you connect it to just one piston, that is grouped with another box, that is connected to another piston. Hard to explain^^
But so you would avoid some problems, I guess. The second box can be set to invisible and ignore, so it is no obstacle anymore.