Added horizontal scrolling functionality