gallery margin and padding to em