Refactor the `FeaturedCarousel` component in `client/src/pages/home.tsx` to dynamically adjust the display of hero and side articles based on the current page and available gallery images. This includes modifying column spans and article slicing logic to accommodate the new layout.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 413891e8-d784-4bea-b9f5-91a5a68316b4
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3eaf2b0e-320a-43fa-a05e-a3d651f534ae
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/413891e8-d784-4bea-b9f5-91a5a68316b4/RVXhOPb
Replit-Helium-Checkpoint-Created: true