updated coding to try to fix carousel bug