elif row == -1:
        row = n_kernels / int(col)
        if n_kernels % int(col) != 0:
            row += 1