Added an assert which checks that the number of carousel slides and number of carousel thumbnails match.  No way to handle this at the moment :(.  Could probably make this more robust still by automatically checking the IDs of the slides/thumbnails