Update the slug functionality for content and categories