Replace 1050px (arbitrary value) with outside width (1030px)
Fix algorithm for middle space