fix pagination (bootstrap style)