slide function

add slide function for setting