Create helper function to generate slugs