many thanks Dave and much appreciated for taking a look.
Tried to use that but it seems that this echo statement
<?php echo($count === 0)?'mainGalleryImage'?'thumbnailGalleryIMage'; // check count value and display appropriate class ?>
is erroring
Thanks
Jamie