Make pagination navigation compact for many pages