1. add this new function /**********************************************************/ function createNoShows($noshows, $thumbcode){ $return = ''; if (count($noshows) > 0) { $return .= '
'."\n"; } return $return; } 2. In function nggCreateGallery find array_splice($picturelist, 0, $start); before add: $noshows_before = array_slice($picturelist, 0, $start); 3. In function nggCreateGallery find array_splice($picturelist, $maxElement) before add: $noshows_after = array_slice($picturelist, $maxElement); 4. In function nggCreateGallery find foreach ($picturelist as $picture) { before add: $out .= createNoShows($noshows_before, $thumbcode); 5. In function nggCreateGallery find $out .= ($maxElement > 0) ? $navigation : ''."\n"; before add: $out .= createNoShows($noshows_after, $thumbcode);