set width of layouts correctly on dynamic width

fix #110