How to output thumbnail twice in a loop

You can rewind_posts() then just call $loop->the_post() once outside of the while loop, output the thumbnail, and rewind_posts() again to output the ul list.

error code: 523