how to check for the 2nd, 3rd, 4th… image in an asset's field
Since in Craft you will loop over an Assets field, you could use the loop.index variable: https://twig.symfony.com/doc/2.x/tags/for.html to check for the nth iteration.