Adding horizontal size and align to preferences