Fixed bug in css slider