I think that for a foam cutter, specially if is for not too little pieces the drawer slide (the big ones, more stiffen) can do the job. Stiffness is needed to compensate the force exerted from the piece being machined against the machining tool (or the hot wire). The force exerted by a piece of foam looks no really heavy
Fer