setting horizontal ruler