New laws to ensure the most dangerous criminals spend longer