modified flexible height plugin