updated pagination to inlcude only 3 items eg. 1,2,3 in navigation