Dividends are not included in the Gain/Loss figure for individual stocks. However, they are included in your overall Portfolio performance.
This means dividends will have a positive impact on your total portfolio returns, even though they don't affect the performance shown for each individual investment.