set sizes for elements and also allowed resizing of certain elements