What is a thin piece of metal placed between two parts to make a fit called?

shim — (Mach.) A thin piece of metal placed between two parts to make a fit. (Webster's 1913.)

Sources