fixed auto slide on carousel bug.