Allow for sliding to an index, an id or an element by @andyburke

Original discussion #211