Moved some slide processing to hook_preprocess_node.