fix stop slide background javascript error