added support for different grid paddings left and right