Tweak _prev_slide and _next_slide when loop is True.