/************* Display the page or post slug *****************/
Just use get_slug()

Use this in Functions.php