As a noun shim
is a wedge or
shim can be (informal|often|derogatory) a person characterised by both male and female traits, or by ambiguous male-female traits, also called a he-she; transsexual.
As a verb shim
is to fit one or more shims to a piece of machinery.