added type filter for nested items when filtering by slug