The first chord is E7sus4 and the second is a slight variation of a D6. The correct(no such thing really) way to play it would be to include the note that your index finger is vacating when you shift across to the G string.
You might find this useful.