The following are examples of the five pentatonic box shapes. Each scale is both major and minor at the same time, i.e the E major Pentatonic is also the C# minor pentatonic. Refer to 'An Introduction to Music Theory', move a major shape up three frets and it becomes the relative minor.
Learn each scale and then it will become obvious to you that when playing in a different key, the shapes are the same just in a different fretboard position. Each time you pick up the guitar use these as a warm up exercise and within a short while they will be imprinted on your brain. Practice them from the nut to the twelfth until you know them, then start in the middle and work both up and down, see how each shape overlaps the next/previous?
Importantly combine the shapes without getting locked in each i.e think ouside the box!