background-image: url('./image-path.jpg');
background-position: center center;
background-size: contain;
(slideWidth + gapBetweenSlides) * activeIndex + (screenWidth - slideWidth) / 2
const blocks = document.querySelectorAll('.block')
const maxHeight = Math.max(...Array.from(blocks).map(block => {
const { height } = block.getBoundingClientRect()
return height
}))
blocks.forEach(block => {
block.style.height = maxHeight
})