You could set the kernel size and stride for this spatial dimension to 1 as seen here:
x = torch.randn(1, 1, 24, 24)
conv = nn.ConvTranspose2d(1, 1, (2, 1), (2, 1))
out = conv(x)
print(out.shape)
> torch.Size([1, 1, 48, 24])