I think you would need a B17 enthusiast to answer your question - so many built, various 'marks' etc. From this link it seems that turrets were possibly attached and perhaps detached for filming.....
https://www.pbase.com/easystreet/notes_on_the_filming
Photo credit Warbirds Information Exchange.