the code
for dynamic page
$w.onReady (()=>
$w("#dynamicDataset").onReady (() => {
let video1 = $w("#dynamicDataset").getCurrentItem().video1
let video2 = $w("#dynamicDataset").getCurrentItem().video2
let video3 = $w("#dynamicDataset").getCurrentItem().video3
let video4 = $w("#dynamicDataset").getCurrentItem().video4
let video5 = $w("#dynamicDataset").getCurrentItem().video5
let video6 = $w("#dynamicDataset").getCurrentItem().video6
if(video1 !== undefined ) $w("#video1").expand(), $w("#box1").expand();
if(video2 !== undefined ) $w("#video2").expand(), $w("#box2").expand();
if(video3 !== undefined ) $w("#video3").expand(), $w("#box3").expand();
if(video4 !== undefined ) $w("#video4").expand(), $w("#box4").expand();
if(video5 !== undefined ) $w("#video5").expand(), $w("#box5").expand();
if(video6 !== undefined ) $w("#video6").expand();
}))