Added width checking to improve ux on mobile