An enemy tank could have been "marking" your position and keeping your focus by shooting the berm...while someone else in an M18 snuck around you and plugged ya. Without film...you just never know how many are really out there. Just for the record....I have NEVER done this to an enemy tank behind a hill. 
Got 2 of HeidiHo's Tiger II's yesterday like that.
