Add new function for retrieving the page slug.