How can I scroll the page by moving the mouse left and right without scrolling.

So the gallery position will be determined by the position of the mouse on the page.

If you mean that literally, the problem is that with a large scroll depth you can get to a point where the slightest mouse movement causes a large scroll displacement, which is not desirable.Another approach is to scroll only when the cursor is near the edges of the screen. One example here.