try to guess if url part is a slug or a page number