Fix bug with toggling between inline and side-by-side view