new function to parse URL slug