Added feature to select slit position