Trouble with tab is, it tells you where to play - gives you no options. The notes are a D on A string, and its octave on G string. This can be played using D open, and G string, 7th fret. Now they're next door to each other, they're easier to play. Given, the sound may be slightly different, with an open, but, especially as this is probably muted, it won't be bad.Your fret fingers will still be around the same place, so you don't have to move any more than you did.
Muting a string is very common on guitar, often, altered chords need this to happen, to stop an otherwise duff note.But this is hardly a chord, with only two notes played.