Fixed the z-index issue and the slider rendering outside page issue