split a list (or any html markup) into many identical ones