def slice_dict(d, keys):
    """
    Only return subset of dict keys

    :param d: dict
    :param keys: list
    :return: dict
    """
    keys = set(keys).intersection(d.keys())

    sd = {k:d[k] for k in keys}

    return sd