title: How to limit amount of product thumbnail images in Magento product page
body: <p>In Magento, does anyone know how to limit the amount of thumbnails to be shown under the main product image?</p>
  
  <p>Is this something that is easily controlled via the admin or should I go into media.phtml and edit the php?  </p>
  
  <pre><code> &lt;div class="more-views"&gt;
        &lt;ul&gt;
        &lt;?php foreach ($this-&gt;getGalleryImages() as $_image): ?&gt;
          &lt;li&gt;
              &lt;a href="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($this-&gt;getProduct(), 'image', $_image-&gt;getFile()); ?&gt;" title="&lt;?php echo $_product-&gt;getName();?&gt;" onclick="$('image').src = this.href; return false;"&gt;
  
                  &lt;img src="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($this-&gt;getProduct(), 'thumbnail', $_image-&gt;getFile())-&gt;resize(103, 103); ?&gt;" alt="&lt;?php echo $this-&gt;htmlEscape($_image-&gt;getLabel()) ?&gt;" title="&lt;?php echo $this-&gt;htmlEscape($_image-&gt;getLabel()) ?&gt;"/&gt;
  &lt;/a&gt;
          &lt;/li&gt;
      &lt;?php endforeach; ?&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>