Check if there are enough elements before activating

Performed a simple check to make sure there are enough elements to start the slider.

I used mine at the bottom of a website with an arbitrary number of elements (it's a CMS), and it works perfectly.