Added slide function.