Fix bugs in slide action

Issues if slide returned less than the selected number of points.