Declare more than 2 pins for arduino

Do you intend to listen to the GPS or the GSM? Both is the wrong answer. Only one instance of SoftwareSerial can listen at a time. Data sent to the pins that the other instance is monitoring evaporates in the ether.