fix slide function, add more options