function to get all Slugs