coede taken from http://bradsknutson.com/blog/css-responsive-carousel/ and it had better wokr