Removing transition check in carousel that is causing an error