Added slide function