fix off by one error in slide

Slide had an off by one error.