Thank you "grynmoors "

The method works fine for the first thumbnail but not for the rest in the row.

How to fix this minor issue?

Please help.

Thanks