Function to get post/page slug
From: http://www.wprecipes.com/wordpress-function-to-get-postpage-slug