Why not to add (in ui form) for each form its height and width ?
This should be more flexible than small, medium and large size settings