correctly displaying icons when layout is not vertical