--- node_images.module	2007-02-03 21:05:44.000000000 -0600
+++ node_images.module.ter	2007-06-05 17:12:03.000000000 -0500
@@ -654,7 +654,7 @@
 
   $output = '<table id="slideshow-table"><tr>';
   $output .= '<td style="width:'.$width.'px;">'.drupal_render($slideshow).'</td>';
-  $output .= '<td>'.theme('node_images_gallery_thumbs', $thumbs).'</td>';
+  $output .= '</tr><tr><td>'.theme('node_images_gallery_thumbs', $thumbs).'</td>';
   $output .= '</tr></table>';
   $output .= '<hr />'.node_view($node);
 
@@ -677,21 +677,19 @@
   return $output;
 }
 
-function theme_node_images_gallery_thumbs($thumbs, $cols = 2) {
+function theme_node_images_gallery_thumbs($thumbs) {
   $count = count($thumbs);
-  $output = '<table id="thumbs-table">';
+  $output = '<hr/><div id="thumbs-div">';
 
   $i = 0;
   foreach($thumbs as $id => $thumb) {
-    if ($i % $cols == 0) $output .= '<tr>';
-    $description = '<div class="thumb-description">'.truncate_utf8($thumb['title'], 40, FALSE, TRUE).'</div>';
-    $output .= '<td>'.l('<img src="'.$thumb['src'].'" class="slideshow-thumb" id="thumb-'.$id.'" />', $_GET['q'],
-      array('title' => $thumb['title'], 'rel' => 'nofollow'), 'page='.$id, NULL, FALSE, TRUE).$description.'</td>';
-    if ($i % $cols == $cols - 1 || $n >= $count) $output .= "</tr>";
+    $description = truncate_utf8($thumb['title'], 40, FALSE, TRUE);
+    $output .= '<div id="thumb-div">'.l('<img src="'.$thumb['src'].'" class="slideshow-thumb" id="thumb-'.$id.'" /><br/>', $_GET['q'],
+      array('title' => $thumb['title'], 'rel' => 'nofollow'), 'page='.$id, NULL, FALSE, TRUE).$description.'</div>';
     $i++;
   }
 
-  $output .= '</table>';
+  $output .= '</div>';
   return $output;
 }
 
@@ -883,4 +881,4 @@
  */
 function node_images_views_pre_query() {
   require_once './'. drupal_get_path('module', 'node_images') .'/node_images.views.inc';
-}
\ No newline at end of file
+}
