Added function to create slug