$('aside').hover(function() { this_img.hide(); all_thmbs.removeClass("active"); $(this_img[0]).css("display", "block"); })