calculate fftsize based on height