calculate scrolling based on each item width