updates gap width
corrects main window width in tiling mode