Refactored some pagination code.
Changed bubble sizes and the number of paths.