Added getters and setters for horizontal and vertical directions