added auto resizing macros
added content offset to vertical centering