How to append content to draggable list?

How to append content to draggable list?

Hello together,

I am quite new to jquery. What I would like to realize is a simple, draggable content slider.
When the last slide is reached, new slides shall be loaded from a server function.
The first slides shall be removed so that always a constant number of slides is in the slider.

The simpliest and best static slider which I found so far is this one: http://jsfiddle.net/M8ydk/1/
From my point of view, only the dynamic adding of the next slide and removing of the first slide is missing.

I tried to connect connect to the stop event and check if the current ui.position corresponds to the max position. But when then appending an <li> to the ul, I got strange behaviour.

So now I hope for your help.

Thank you and regards

Rainer