Bedside co-sleepers usually provide you an option to attach them with your bed. While attaching them make sure no gap should be available between your bed and co-sleeper. It is safe to have an optimal distance between a co-sleeper and your sleeping placement. No exact measurements are present but ideally, it should be at an arm's distance so that you can reach your baby easily. Avoid making this distance less as it may cause suffocation.