Do you mean “stacked” in the Cisco Stacked Switch configuration?
If you just need the switches to be on the same subnet, the you can connect them together with a CAT 5/6 and configure their IP addresses to be on the same subnet.
If you need to have different subnets on each switch (subnet A and subnet B) and a common subnet (subnet C) for the cameras, then you can use VLANs on the switches.