Added initial support for layer selection

collisions are now hidden by default