set maximum height for opacity frame of mainPost