Ensure the pagination function correctly handles out-of-bounds indices
when slicing items. Update the slice logic to prevent slice bounds
errors and add a test case for better coverage of edge cases.
Updates the Codecov badge URL in the README to ensure it
correctly points to the project repository. This enhances
documentation clarity and reflects the correct integration
status.