You are going to have to move your thumbs recordset inside your details loop and you are going to have to filter it based on the detail being displayed... then you are going to have to add a repeat region around the thumbs display line show it displays for as many thumbs as exist for that detail.