Canned Tomatoes Separated
The picture you included is normal for tomatoes especially depending on the method of pack. Raw pack tomatoes will often "float" or separate due to the loss of oxygen during processing resulting in what you see. They are safe to eat as this is due to packing or product shrink. The safety is a question of did you use a recipe from an approved trusted source, were they processed properly, is the jar sealed based on the push button test or spoon test. For the spoon test, use a metal spoon and strike the lid of the jar, if you hear a clear ring the jar is sealed and if you hear a "thud" the jar is not sealed.