If you want the click to only collapse one post, then it has to have a unique id. I'm guessing that "sidebar_minicard_2475" is supposed to be "sidebar_minicard_xxxx", where xxxx is the postid. If you look at this article,
https://vborg.vbsupport.ru/showthread.php?t=122523, you'll see that the 'name' called in the javascript is used as the id in the div to be collapsed. Every post will need it's own id and then that id will need to be called in the javascript there.