made new carousel js for horiz and vert scrolling