title: how to add a line or hr tag between dynamic created <ul> and <li> after a number of <li>
body: <p>i'm working in wordpress with twitter bootstrap theme. i just made a template which fetch the values from repeater fields like image, name, designation etc and i call these values in my template in ul and li now i want that after 4 li there will be a hr tag or line how can i achieve it.</p>
  
  <p>Here is my code for getting the data from repeater field into my template:</p>
  
  <pre><code>&lt;ul class="thumbnails"&gt;
  &lt;?php $gcount=get_post_meta($post-&gt;ID, 'europe_speaker', true);
              for($i=0;$i&lt;$gcount;$i++){ 
              $photo=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_photo", true);
              $name=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_name", true);
              $designation=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_designation", true);
              $company=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_company", true);
              $line=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_line", true);
              $category=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_category", true);
              $download=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_download", true);
              $download_link=get_post_meta($post-&gt;ID, "europe_speaker_".$i."_download_link", true);
  
              ?&gt;
  
  &lt;li class="span2"&gt;
  &lt;div class="speakers_img-height"&gt;
  &lt;img src="&lt;?php echo $photo?&gt;" class="img-polaroid" style="margin-bottom:5px;"/&gt;&lt;br/&gt;&lt;span style="color:#686868;"&gt;&lt;strong&gt;&lt;?php echo $name?&gt;&lt;/strong&gt;&lt;br/&gt;&lt;?php echo $designation?&gt;&lt;br/&gt;&lt;?php echo $company; ?&gt;&lt;br/&gt;&lt;a href="&lt;?php echo $download_link; ?&gt;"&gt;&lt;?php echo $download; ?&gt;&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  &lt;?php }?&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>after giving li span2 class it will give 4 li in a row and i want to add a line or hr tag after that.please help me guys.</p>