Follow up: the issue is fixed when I set the tab containing the image carousels as default. However, this is not a good fix, because another tab on the same page contains a shortcode to a Modula gallery, which only loads when that tab is set to default. I can theoretically set both tabs (with the Modula shortcode and the image carousels) as default, but even then still only one tab will actually load properly. So the problem still persists. Any advice would be greatly appreciated.