A beam position monitor and slit combination for synchrotron radiation