return -1 if page no for some anchor not exists