expanding prevnext tag to handle category slug