def chunks(l, n):
    """
    splits a list of arbitrary lenght in a list of lists of lenght n while keeping the original order
    :param l:       list that is to split
    :param n:       length of returned sublists
    :return:        list of sublists
    """
    n = max(1, n)
    return list(l[i:i + n] for i in range(0, len(l), n))