modified slider to work with three and less languages