added slug functionality