def dict_slice(dict_input, start, end) ->dict:
    """
    take slice for python dict
    :param dict_input: a dict for slicing
    :param start: start position for splicing
    :param end: end position for slicing
    :return: the sliced dict
    """
    keys = dict_input.keys()
    dict_slice = {}
    for k in keys[start:end]:
        dict_slice[k] = dict_input[k]
    return dict_slice
