The formula for the capacitance of the capacitor made of two parallel plates with a dielectric in between them is
C = k A f /d
When the dielectric is removed, air is between the plates with a permissivity of 1
Co = A / d
The height of the dielectric is the same as the separation of the plates. So,
k h lf / C = h l / Co
The ratio of the lengths of the dielectric and the plates is
lf / l = C / k Co