Create nextAndPrevImgs.js