fixed dimensions in computeLayerThickness