This is an ultrasound scan of the heart.  Jelly is put on the skin of the chest and a probe moved around to take pictures of the heart from a variety of angles.  It isn’t painful, though can be a little uncomfortable as sometimes the probe needs to be pressed quite hard against the skin to get good quality pictures