Make slide() polymorphic, allowing it to take an index, a string id, or an element as the target.