If your icons are placed so that the OS thinks they won't "fit" in the window (I think it's calculated based on the icon font size) they will start floating around no matter how much you snapshot them. There should always be a few pixels of extra space around an icon for it to stay in place.
Personally I prefer to do a "clean up" (ramiga-.) to see if the icons will fit in a window, then snapshot them.