One voxel cannot have both transparent and nontransparent parts. However this trick is possible if you place two objects on the same spot.
Here's an example:

However, this trick only works for custom maps.
And this is how I voxelized jars:

It's a compromise I was willing to take.