put absolute positioned element behind static element code example
Example: avoid div slider stack on each other when position absolute
//avoid slides in slider stack on each other when position:absolute in responsive mode
//use 'vw'(automatically responsive) instead of 'px'(will stretch the elements when page responsive)
//each card width:
cards.forEach((card, index) => card.style.left = index * 90 + 'vw');