Added better support for randomizing the start of the slider. It can handle different sizes, and works with and without the infinite option.