Query the posts with the slug instead of the post id for better url names