mmm ... puedes hacerlo más sencillo. Aplícale un margen a algún lado a las imágenes con css
Código HTML:
<style type="text/css">
#fuera img{
margin-left: 5px;
}
</style>
y la misma cantidad (5 en el ejemplo) la has de sumar en la última función del script
Código:
function reDimCapas(){
for(m=0;m<imagenes.length;m++){
tam +=document.getElementById('ima'+m).width + 5
document.getElementById('imas').style.left = (-tam +10);
document.getElementById('imas').style.width = tam ;
document.getElementById('imas2').style.width = tam;
}
}
Con eso debería bastar
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)