Not quite there yet but it’s getting closer, I removed a few errors. One was that all the images inside a grid would get the same
id. That’s now a class. Furthermore, you weren’t targeting the images but the parent at the bottom of the script. And I made the repetition at the top more optimised by writing a single function and executing that multiple times with the different parameters.