def slice_me(series, length):
    """
    Performs the validation for the length to slice through,
    if the length is out of the bound (1, len(series)) raise a ValueError
    else get consecutive substrings from the series
    :param series:
    :param length:
    :return: slices of the series
    """
    numbers = [int(digit) for digit in series]
    if not 1 <= length <= len(series):
        raise ValueError("Invalid length to slice %s" % str(length))
    return [numbers[i: i + length] for i in range(len(numbers) - length + 1)]