A method for providing a singling device of a storage and dispensing container for drug portions is provided. A singling device is adapted to a specific drug portion based on the measurement of the drug portion. The measurement is obtained by generating at least one image of a to-be-measured drug portion by a detection device and using image analysis to process the at least one image. Drug information for the specific drug portion is determined, the drug information including at least the dimensions of the specific drug portion. Based on the determined drug information, a singling device fitting the drug portion to be singularized is identified and provided for use in the storage and dispensing container. A system for identifying a singling device is also provided.