Gm is made of these notes: G (root), Bb (minor third), D (fifth).
With this shape the strings sound like this, from the g string to the D string: G, D, Bb, D, D.
A minor chord sounds softer and often a little sad. It differs from the major chord in just one note: the third is a half step lower.
Gm belongs to these major keys: F major (degree II), E flat major (degree III), B flat major (degree VI).