This page contains an example of the stack image index synchronizer tool. It uses the index of the image in the stack to synchronize. You may want to use this if the images don't have the image position attribute.