adds slug route for pages