code to vertically center figures and tables