force layout with collision detection