dynamic Prefooter checking height and width