Assume relative units, using the scrollWidth and length method. Divide values to get units
To stop the carousel after the limit is exceeded you can toggle the canLeft and canRight values of the boolean, using relative units from the containerWidth and content width using the .scrollerWidth and .length js method