different lengths for a list in a list

e.g. a list is composed of 2 to 5 items depending of the item of the
parent list