In order to stop pesto drying out in the jar once it has been opened, pour a little olive oil onto the top of the remaining pesto. Pesto already contains olive oil and the extra oil will help form a seal which will help it stay fresher longer and not dry out. Store the opened jar in the fridge.