Improvements

Fixed action on a number of clicks (prev/next),
Sliding function algorithm changed a bit