prevent horizontal scrolling on master and preview