Fixed bug with split boxes

Boxes wouldn't have proper margin depending on position