adding starting function and argument with the target and current items that will be slided-in or out