When you hide a field in a data card, you are simply making it not visible. It still occupies the space and there are other fields in the data card that occupy space as well, so it doesn't shrink in size.
Is that a text input field that you are hiding?
Try this, in your Height property for that field use the same criteria you used to hide it, to make the height a smaller number.
If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.