Rails can be touch by slimeblocks when the rails are in the side of sticky pistons that are have 2 by 1 slimeblocks in the top of sticky piston which is the rail is in the down of next slimeblock when the piston powered the rail sticks to slimeblock.
This ticket is very difficult to comprehend, please use the Bug Report Guidelines here when posting issues.