Morris, whose character Brittany Pierce is obsessed with the pop superstar, performs the number in a replica green bikini from Spears's 'Slave 4 U' music video in the above clip.
Spears herself made a cameo appearance in the season two Glee episode 'Britney/Brittany'.
Glee: The 3D Concert Movie arrives on 3D Blu-ray, 2D Blu-ray and DVD on December 5.
> Glee: The 3D Concert Movie: Cory Monteith, Heather Morris interview
> Glee: The 3D Concert Movie: Watch the official UK trailer
Move through a Glee: 3D Concert Movie picture gallery below: