def sliced_data(data: list, start=None, end=None) -> list:
    """Dataset safe slicing method

    Parameters
    ----------
    data : list
        Data stored in list of dicts
    start : [type], optional
        Start index, by default None
    end : [type], optional
        End index, by default None

    Returns
    -------
    list
        Sliced data stored in list of dicts
    """
    if start:
        data = data[start:]
    if end:
        data = data[:end]
    return data