Gdim7 is made of these notes: G (root), Bb (minor third), Db (diminished fifth), Fb (diminished seventh).
With this shape the strings sound like this, from the g string to the D string: G, Fb, Bb, Db, Fb.
The diminished seventh chord is made only of minor thirds. That’s why it sounds the same when you move it three frets – handy as a passing chord.