Try avoid using the shortcut if syntax:
PHP Code:
if($blabla)
$dobla = 'Skf';
// ------------------
// Generally preferred:
if($blabla)
{
$dobla = 'Skf';
}
It is easier for others to read your code then...
Anyway, after your template eval() you could add something like:
PHP Code:
// If counter is a multiple of 5 then execute this code...
if(($i % 5) == 0))
{
$eic_imagebits .= '<br />';
}