You have to load/unload the tank from your medivac, so the stalkers will miss some shots. It’s a good idea to hold position with your medivac, so it won’t run away when attacked.
It took me many tries to accomplish this for the first time. Then, I started holding position with the medivac and that made the challenge much easier in my opinion. Got this idea from Dakkon.