fix bug js of slidecontroller