calculate the widget width to be evenly distributed