fixbug:slide fail after resize