e cards at a time

function moveSlide(direction) {
  const booksList = document.querySelector('.books-list');
  const totalBooks = document.querySelectorAll('.books-list li').length;

  // Update the current index based on direction
  currentIndex += direction;

  // Loop the carousel
  if (currentIndex < 0) {
    currentIndex = 0; // Do not go past the first set
  } else if (currentIndex > totalBooks - visibleCards) {
    currentIndex = totalBooks - visibleCards; // Do not go past the last set
  }

  // Mo