rotate 3d and stack