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