added sliding functions