It may be simpler to focus on just three faces (the three different faces), rather than on all six.

This net of a cuboid may help.

Try to be systematic:
if the height is $1$, what are the possible combinations for the width and depth?
if the height is $2, 3, 4$... what are the possible combinations for the width and depth?