fixed issue with sliding right and left