Slovenia kept their World Cup qualification hopes alive as they came out on top against a lively Cyprus side in Nicosia.