adding prev and next buttons and moving the image links out