space between slides removed by js