added horizontal layout for sf 2.3 features

Includes fix for #55 and #57