add the slug attribute for pages