Words like hinter or zwischen can tell you where something is. In German, if the thing you’re talking about is moving, you’ll use the accusative der word and ein word endings. Remember the phrase Active Accusative!
If the thing isn’t going anywhere, you’ll use the dative der or ein word endings after those words. Remember the phrase Dative Dormant!