added spans for vertical positioning