You can try
$(".linkButton").click(function () {
$(this)
.closest('.solution_footer') // Find closest div
.next(".solutionsCommentsPanel").slideToggle(300);
chngimg($(this).find('img')); //assuming image will be rendered as a child
});
Also to change to image of specific arrow modify your function
function chngimg(img) {
if (img.attr('src').indexOf('arrow-right.png') != -1) {
img.attr('src', 'Content/img/arrow-bottom.png');
} else {
img.attr('src', 'Content/img/arrow-right.png');
}
}