GSM module’s Rx pin is directly connected to Tx pin of Arduino and Tx pin of GPS is directly connected Rx pin of Arduino.