Fixed pagination, dynamically limit page count, around active page