The picture turns 90 degrees when i take a snap


Everytime I take a snap with my Samsung galaxy tab 3, the picture turns 90 degrees. It doesn't matter which cam or which way i'm holding the tablet. Does anyone know how to fix it? It's really disturbing and ugly when the picture stretch to fit the wrong sides.