code to implement slave pixels