Fix for FireFox related issue carousel bug

fixes #10091