changing viewPeriod to min/max width of each unit level