Allow for sliding to an index, an id or an element.