If you need a custom shim that you have to cut to a very specific dimension, you could try to use you tape measure to measure the gap, but there's a better way.