splitting function

Splitting lists of items