update horizontal scrolling