Updated width calculations to handle having interface appear vertically