updated slider and wordpress functions