small bug, it could be typo page.getSlug() but it should be entry.getSlu...

...g()