You shim the main beams not the linear rail, either using proper shim material or this forums favourite method...metal from an aluminium can (Guinness being a favourite) and then using a straight edge and feeler gauges find the high spots and file/scrape them and fill any low spots. Then the linear rails can be mounted straight on the beams.