Issue with custom code and CMS for draggable slider

Hi, I am trying to get this CMS draggable slider to work without a cms collection inside of it.

It is taken from a T.RICKS cloneable project:

I am not having any luck - it seems like the size is being set by how many items are inside the collection.

Help would be really appreciated.