adding prev and next button and scroll ability