Never mind, took about 48 hours but got it :).
For anyone else with the same problem, this works:
$w.onReady(() => {
$w(“#dynamicDataset”).onReady(() => {
// Gets the current item properties and stores them in a variable called item
const item = $w(“#dynamicDataset”).getCurrentItem();
// Checks if the current item has a value in the “slide1” field
if (!item.slide1) if (!item.slide2) if (!item.slide3) {
// Collapses the image space if there is no value for “slide1”
$w(“#image17”).collapse(); $w(“#image16”).collapse(); $w(“#image15”).collapse();
}
});
});