Use set instead of dict for slug filter