Bug fix: layout bug when document width is between 956px and 977px