resize the figures