All of your DIVs have the common class "page", which is a good thing. But I see 8 links and only 3 DIVs with class "page"? Is it only a partial extract?
Nevertheless, try this
Code:
$('#my-carousel-2 > ul > li > a').click(function() {
var whichLink = $(this).parent().index(); // 0 to 7
// hide all pages first
$('.page').hide();
// then show only DIV with correct index
$('.page').eq(whichLink).show();
});