Javascript and styles for before and after slider