added menu height detection for the mobile menu