table resize

table sizes are transformed into percentages for automatic resizing