Gilligan's Planet
Space Pirates (1x9)
:
Gilligan discovers a treasure trove of advanced technical equipment, including a "size transformer cube", and accidentally shrinks all the castaways except the Professor. Soon after, pirates arrive looking for the cube and the other equipment, and chaos ensues...