Fix hiding next and previous links on the final slide.