3D vars are now stored per carousel object; code cleanup