added heights for horizontal mode