slider js moved to head