Fixing max-height and moving it to dynamic query

Css fix