measured from the top. The slab is placed between two media