Added horizontal orientation to layer