add vertical alignment on load and resize