Make sure the image stacks preserve the working slice number when opening and closing the plugin.