Re-arranges layout to avoid spacing problem on right side.