We create a container div that has the width we desire. Here it is outlined in red. Inside this container, we put our carousel div. It's width is set larger than the container. It should be the number of panels * 100 percent. So, for four panels, 400%. It is set to be absolutely positioned. The container's position is set to relative and later we will set its overflow to hidden so you won't see the things outside of the container.
See the working demo.