I had an f3 which has a headshock like the f4 which is the same frame as the f5. The headshock axle to crown measures within 3mm of the fox f120, so that is a direct swap so a 130 wouln't be too insane however i wouldn't recomend it
what you could do is get somthin with travel adjust like the talas, rock shox and marz both make travel adjustable forks, the talas does 100, 120 and 140mm travel, so just crank it down to 100 for your f5, new frame, just change the travel