commit by jayli,bugfix for slide.js