When window size is changed, element sizes are changed to match