looping over images in an image field
If you want to access the file uri in the node you have to iterate over the field in the node:

{% for image in node.field_image %}
  {% if loop.first %}
    &lt;div class="class1"&gt;
      &lt;img src="{{ file_url(image.entity.fileuri) }}" /&gt;
    &lt;/div&gt;
  {% else %}
    &lt;div class="class2"&gt;
      &lt;img src="{{ file_url(image.entity.fileuri) }}" /&gt;
    &lt;/div&gt;
  {% endif %}
{% endfor %}