How to exclude file types from main gallery

I have a gallery of images that I’m looping through and I just added another image file (mobilehero:) that I want to keep seperate from this gallery - Currently it is being rendered through the foreach loop

columns:
  left:
    width: 1/2
    sections:
      gallery:
        type: files
        layout: cards
        image:
          cover: true
          ratio: 1/1

  right: 
    width: 1/2
    sections:
      content:
        type: fields
        fields:
          mobilehero:
            type: files
            max: 1
            label: Mobile Hero Placeholder


<?php foreach ($page->images()->sortBy('sort') as $image): ?>
<?php endforeach ?>

To keep them separate, you have to assign a different file blueprint to each section: https://getkirby.com/docs/reference/panel/sections/files#filtering-files

You can then filter by this template in your template:

<?php foreach ($page->images()->template('templatename')->sortBy('sort') as $image): ?>

Note that the template is only stored at file upload, not to already uploaded files.